package bdz.projects.inl.vo
{
	import bdz.projects.inl.core.CoreVO;

	public class ProjectCreditVO extends CoreVO
	{
		[Bindable]
		public var project_credit_id:String;
		[Bindable]
		public var project_credit_type:String;
		[Bindable]
		public var project_credit_location:String;
		[Bindable]
		public var project_credit_name:String;
		[Bindable]
		public var project_credit_url:String;
		
		
		public function ProjectCreditVO(def:XML=null)
		{
			idField = "project_credit_id";
			
			propList = ["project_credit_id", "project_credit_type", "project_credit_location", "project_credit_name", "project_credit_url"];
			if(def && def.name() != "inl_project_credits"){
				def = def.inl_project_credits[0];	
			}
			super(def, null, "inl_project_credits");
		}
		override protected function createPropertyAttributes():void{
			propAttributes = [
			{name:"project_credit_name", type:"input", label:"Name"},
			{name:"project_credit_location", type:"input", label:"Location"},
			{name:"project_credit_type", type:"input", label:"Type"},
			{name:"project_credit_url", type:"input", label:"URL"}
			];
		}
		
	}
}